From: Adel Gadllah Date: Sat, 16 Feb 2013 18:51:46 +0000 (+0100) Subject: messageTray: Close menu when clicking outside of the menu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4817 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b611ddda5e73703268ca7e4e24fdebb81ea06dff;p=gnome-shell.git messageTray: Close menu when clicking outside of the menu --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 512cb53ad..4c8c13325 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1749,6 +1749,8 @@ const MessageTray = new Lang.Class({ let button = action.get_button(); if (button == 3) this._openContextMenu(); + if (button == 1 && this._contextMenu.isOpen) + this._grabHelper.ungrab({ actor: this._contextMenu.actor }); })); clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {